<?php namespace App\Admin\Access\Operation;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'sys_operation';
    protected $primaryKey = 'id';
    
    //一个操作属于一个操作组
	public function group(){
		return $this->belongsTo('App\Admin\Access\OperationGroup\Model', 'group_id', 'group_id');
	}
}